const mongoose = require('mongoose');
const adminSchema=mongoose.Schema({
    adminName: {
        type: String,
        required: true,
        unique: true
    },
    password: {
        type: String,
        required: true,
    },
    regTime: {
        type: String,
        required: true,
    },
    loginTime: {
        type: String,
        required: true,
        default: '----'
    },
    status: {
        type: Number,
        required: true,
        default: 0
    },
});
const adminModel=mongoose.model("adminList",adminSchema);
module.exports=adminModel;